﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div>&nbsp;</div>
    <div class="left" style="width: 350px;">
        <h2>Log On</h2>
        <p>
            Please enter your username and password. <a href="/Account/Register">Register</a> if you don't have an account.
        </p>
        <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>

        <% using (Html.BeginForm()) { %>
            <div>
                <p>
                    <label for="username">Username:</label>
                    <%= Html.TextBox("username", "", new { size = "25" })%>
                    <%= Html.ValidationMessage("username") %>
                </p>
                <p>
                    <label for="password">Password:</label>
                    <%= Html.Password("password", "", new { size = "25" })%>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">Remember me?</label>
                </p>
                <p>
                    <input type="submit" value="Log On" />
                </p>            
            </div>
        <% } %>
    </div>
    <div class="rightbox">
        <h2>Or, Do you have facebook?</h2>
        <div></div>
        <h3 style="margin-bottom: 5px;">Login using your facebook account </h3>
        <div>&nbsp;</div>
        <fb:login-button size="large" background="white" length="long" onlogin='refreshPage();'></fb:login-button>
    </div>
</asp:Content>
